<script>
    $(document).ready(function(){
        setTimeout("count()",1000);     
    })

function count(){ 
    var time_count = $('#time_count').html();
    if (time_count>1){
        time_count--;
        $('#time_count').html(time_count);
        setTimeout("count()",1000);      
    }else{
        var url = $('a').attr('href');
        window.location = url;
    } 
}
</script>
<style>
    #message{
        border:1px solid #008b8b;
        height:90px;
        width:400px;
        margin:200px auto;
        background-color:#ccc;
        text-align:center;color:#ff0000;
    }
</style>
   <div id="message"><?php echo $result;?>该页面将会在<span id = "time_count"><?php echo $s;?></span>秒后跳转。点击这里<a href="<?php echo $url;?>">立刻跳转</a></div>
   